/*
 * @Author: 何 海深 813936564@qq.com
 * @Date: 2023-12-12 18:49:51
 * @LastEditors: 何 海深 813936564@qq.com
 * @LastEditTime: 2023-12-12 18:52:58
 * @FilePath: \gq-one-map-fornt-end\src\hooks\buttonHoverHook\index.ts
 * @Description: 内部按钮，外部按钮鼠标经过显示的内容
 */
import { ref } from 'vue'
const buttonHoverHook = () => {
  const saveBtnEventInner = ref<undefined | Event>()
  const saveBtnEventWarp = ref<undefined | Event>()
  const innerShow = ref<boolean>(false)
  const warpMouseover = (type: boolean, e: Event | undefined = undefined) => {
    saveBtnEventInner.value = e
    innerShow.value = type
  }
  const warpShow = ref<boolean>(false)
  const innerMouseover = (type: boolean, e: Event | undefined = undefined) => {
    saveBtnEventWarp.value = e
    warpShow.value = type
  }
  return {
    saveBtnEventInner,
    saveBtnEventWarp,
    innerShow,
    warpShow,
    warpMouseover,
    innerMouseover
  }
}
export default buttonHoverHook
